// 自动生成模板FakeDetectResult
package model

import (
	"gin-vue-admin/global"
)

// FakeDetect 结构体
// 如果含有time.Time 请自行import time包
type FakeDetect struct {
	global.GVA_MODEL
	global.ReqModel
	Url           string        `json:"url" form:"url" gorm:"column:url;comment:待检测的链接;type:varchar(50);"`
	PlateForm     int           `json:"plateForm" form:"plateForm" gorm:"column:plate_form;comment:社交平台类型;"`
	FakeDetectRes FakeDetectRes `json:"fakeDetectRes" form:"reqState"`
}

// TableName FakeDetect 表名
func (FakeDetect) TableName() string {
	return "fake_detect"
}

type FakeDetectRes struct {
	global.GVA_MODEL
	TagPercent   string `json:"tagPercent" form:"tagPercent" gorm:"column:tag_percent;comment:tag标签三个预测结果各自的比例，以逗号分割;type:varchar(50);"`
	Stance       string `json:"stance" form:"stance" gorm:"column:stance;comment:记录用户立场的json字符串;type:text;"`
	FakeDetectID uint
}

func (FakeDetectRes) TableName() string {
	return "fake_detect_res"
}
